package com.itheima.cn;


import java.util.*;
import java.util.concurrent.CountDownLatch;
import java.util.concurrent.atomic.LongAdder;

public class Hello {
    /**
     * @param args
     */
    public static void main(String[] args) {
      /*  System.out.println("您好");
        StringBuffer str = new StringBuffer("abc");
        StringBuilder sb=new StringBuilder();
        Person p= new Person();
        for (int i = 0; i < 10; i++) {
            System.out.println(i);

        }*/
        /*ArrayList al=new ArrayList<>();
        al.add(1);
        al.add(2);
        List subList = al.subList(0, 1);
        // ArrayList sList= (ArrayList) subList;
        List map = Collections.emptyList();
        map.add("k");

        LongAdder longAdder=new LongAdder();
        longAdder.add(1);*/
        //method(null);
        //StringBuilder sb=new StringBuilder();
        CountDownLatch cdl = new CountDownLatch(10);

        for (int i = 0; i < 10; i++) {
            System.out.println("i = " + i);
        }
        ArrayList al = new ArrayList<>();
        al.add(1);
        al.add(2);
        for (int i = 0; i < al.size(); i++) {

        }
        HashMap<String, Object> map = new HashMap<>(16);
        map.put("name", "zhangsan");
        map.put("age", 30);


    }

    public static void method(String param) {
        switch (param) {
            // 肯定不是进入这里
            case "sth":
                System.out.println("it's sth");
                break;
            // 也不是进入这里
            case "null":
                System.out.println("it's null");
                break;
            // 也不是进入这里
            default:
                System.out.println("default");
        }
    }

    /**
     * @description:TODO
     * @author:yuanfei
     * @date:2020/8/6 17:12
     * @param name: 
     * @param age: 
     * @param money: 
     * @return: com.itheima.cn.Person 
     */
    public Person getPersonByCondition(String name, String age, Integer money) {

        return new Person();
    }
}
